package acm.蓝桥4;

import java.math.BigInteger;
import java.util.Scanner;

public class 试除法 {
    int a = 1000000000;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int n = sc.nextInt() + 2;
        BigInteger res = new BigInteger(String.valueOf(a)).multiply(new BigInteger("10").pow(n)).divide(new BigInteger(String.valueOf(b))).mod(new BigInteger("1000"));
        System.out.println(String.format("%03d", res.intValue()));
    }
}
